// common.h

MYSQL * do_connect(char *host_name, char *user_name, char *password, char *db_name,
                   unsigned int port_num, char *socket_name, unsigned int flags);
void do_disconnect(MYSQL *conn);
void process_query(MYSQL *conn, char *query, char *action, char **res);
void show_result_set(MYSQL *conn, MYSQL_RES *res_set);
void process_select(MYSQL *conn, MYSQL_RES *res_set, char *res[]);
void print_error(MYSQL *conn, char *message);

